From: Steven Barth Date: Sat, 6 Sep 2008 17:06:53 +0000 (+0000) Subject: Backported network scheme X-Git-Tag: 0.8.0~113 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=71b7fcb7e90593259e09b7e0d3ee27803d957a00;p=project%2Fluci.git Backported network scheme --- diff --git a/libs/uvl/root/lib/uci/schema/default/network b/libs/uvl/root/lib/uci/schema/default/network index afd17fbde5..62790cbb53 100644 --- a/libs/uvl/root/lib/uci/schema/default/network +++ b/libs/uvl/root/lib/uci/schema/default/network @@ -112,6 +112,11 @@ config variable option type 'enum' option required true +config enum + option variable 'network.interface.proto' + option value 'none' + option title 'Disabled' + config enum option variable 'network.interface.proto' option value 'dhcp' @@ -217,6 +222,40 @@ config enum +config section + option name 'route' + option title 'Static route definition' + option package 'network' + +config variable + option name 'interface' + option title 'Interface for the route' + option section 'network.route' + option valueof 'network.interface' + option required true + +config variable + option name 'target' + option title 'Target IPv4 host or net address' + option section 'network.route' + option datatype 'ip4addr' + option required true + +config variable + option name 'netmask' + option title 'Target IPv4 netmask (for subnet routes)' + option section 'network.route' + option datatype 'ip4addr' + +config variable + option name 'gateway' + option title 'IPv4 gateway address' + option section 'network.route' + option datatype 'ip4addr' + option required true + + + config section option name 'switch' option title 'Section switch'